/**
 * This file is part of the dspace-poltman project http://www.poltman.com.
 *
 * This is free software; you can redistribute it and/or modify it under
 * the terms of DuraSpace DSpace license detailed in the LICENSE and NOTICE 
 * files at the root of the source tree and available online at
 * http://www.dspace.org/license/
 * 
 */

package com.poltman.dscentral.db.exceptions;


/**
 * 
 * @author z.ciok@poltman.com
 * @version $Revision: 1529 $
 * 
 */
public class RepositoryException extends Exception {
	
	private static final long serialVersionUID = -7151101975433407208L;
	
	String exception;

	public RepositoryException() {
		super(); 
		this.exception = "unknown";
	}
	
	public RepositoryException(String exception) {
		super(exception); 
		this.exception = exception;
	}

	public RepositoryException(String exception, RepositoryException dae) {
		super(exception, dae); 
		this.exception = exception;
	}
	
	public String getError() {
		return this.exception;
	}
}
